package org.ba.ovk;

import lombok.val;

import org.ba.ovk.crawler.CrawlOvkHadler;
import org.ba.ovk.msg.CrawlOvkMsg;
import org.ba.ovk.parser.ParseProgramHandler;

import com.google.common.eventbus.EventBus;

public class App {

	public static void main(String[] args) throws Exception {
		val eventBus = new EventBus();
		eventBus.register(new CrawlOvkHadler(eventBus));
		eventBus.register(new ParseProgramHandler(eventBus));

		for (int i = 1; i < 270; i++) {
			eventBus.post(new CrawlOvkMsg(i));
		}
	}

}
